<template>
	<div style="background: #F7F7F7">
		<div class="successtop">
			<div class="successpic">
				<img src="../../../src/assets/img/ordercan.png" alt="">
			</div>
			<div class="success_order">
				<img src="../../../src/assets/img/canaelpay.png" alt="">
			</div>
		</div>
		<div class="successbottom">
			<div @click="backindex()">返回首页</div>
		</div>
	</div>
</template>

<script>
	export default {
		name: "orderfail",
		data() {
			return {
				id:'',  //课程id
				type:'',  //1课程
				order_id:'',
			};
		},
		methods:{
			// 点击返回首页
			backindex(){
				this.$router.push({
				  path:'/'
				})
			},
// 			stuindex(){
// 				// this.$router.go(-2);
// 				var type = this.type;
// 				var id = this.id;
// 				if(type=='1'||type==1){
// 				    this.$router.push({
// 				   path:'/gkx',
// 				   query:{
// 				     id:id
// 				   }
// 				 })
// 				}else if(type=='2'||type==2){
// 				    this.$router.push({
// 				   path:'/x',
// 				   query:{
// 				     id:id
// 				   }
// 				 })
// 				}else if(type=='3'||type==3){
// 				   this.$router.push({
// 				   path:'/details',
// 				   query:{
// 				     id:id
// 				   }
// 				 })
// 				}
// 			}
		},
		mounted() {
			sessionStorage.setItem('tapfalse',true);
// 			var id = this.$route.query.id;
// 			var type = this.$route.query.type;
// 			var order_id = this.$route.query.order_id;
// 			this.id=id;
// 			this.type=type;   //1课程
// 			this.order_id=order_id;   //1订单编号
		}
	}
</script>

<style scoped="scoped">
.successtop{
	width: 100%;
	height: 3.87rem;
	position: relative;
	/* background: url('static/img/ordercan.png') no-repeat; */
}
.successpic{
	width: 100%;
	height: 3.87rem;
	position:absolute;
}
.successpic img{
	width: 100%;
	height: 100%;
}
.successtop .success_order{
	position: absolute;
	top: .81rem;
	width: 3.02rem;
	height: 2.28rem;
	left: 50%;
	margin-left: -1.51rem;
	
}
.success_order img{
	width: 100%;
	height: 100%;
}
.successbottom div{
	width: 2.6rem;
	height: .7rem;
	text-align: center;
	line-height: .7rem;
	margin: .63rem auto 0;
	color: #999999;
	border: 1px solid #999999;
	font-size: .28rem;
	border-radius: .35rem;
}
</style>
